package me.flyray.bsin.server.domain._gen;

import java.util.Map;
import java.util.HashMap;
import java.util.Arrays;
import java.util.List;

import java.io.Serializable;

import me.flyray.bsin.server.domain.SysRole;

// tell cpd to start ignoring code - CPD-OFF
/**
 *  Sysrole: sys_role
 */
@SuppressWarnings({"PMD"})
public class _SysRole implements Serializable{
    
    /* 角色id: ROLE_ID VARCHAR */
    public static final String PROP_NAME_roleId = "roleId";
    public static final int PROP_ID_roleId = 1;
    
    /* 角色编号: ROLE_CODE VARCHAR */
    public static final String PROP_NAME_roleCode = "roleCode";
    public static final int PROP_ID_roleCode = 2;
    
    /* 角色名称: ROLE_NAME VARCHAR */
    public static final String PROP_NAME_roleName = "roleName";
    public static final int PROP_ID_roleName = 3;
    
    /* 应用id: APP_ID VARCHAR */
    public static final String PROP_NAME_appId = "appId";
    public static final int PROP_ID_appId = 4;
    
    /* 角色描述: REMARK VARCHAR */
    public static final String PROP_NAME_remark = "remark";
    public static final int PROP_ID_remark = 5;
    
    /* 创建时间: CREATE_TIME DATETIME */
    public static final String PROP_NAME_createTime = "createTime";
    public static final int PROP_ID_createTime = 6;
    
    /* 修改时间: UPDATE_TIME DATETIME */
    public static final String PROP_NAME_updateTime = "updateTime";
    public static final int PROP_ID_updateTime = 7;
    
    /* 创建人: CREATE_BY VARCHAR */
    public static final String PROP_NAME_createBy = "createBy";
    public static final int PROP_ID_createBy = 8;
    
    /* 修改人: UPDATE_BY VARCHAR */
    public static final String PROP_NAME_updateBy = "updateBy";
    public static final int PROP_ID_updateBy = 9;
    
    /* 逻辑删除 0、未删除 1、已删除: DEL_FLAG INTEGER */
    public static final String PROP_NAME_delFlag = "delFlag";
    public static final int PROP_ID_delFlag = 10;
    
    /* 租户ID: TENANT_ID VARCHAR */
    public static final String PROP_NAME_tenantId = "tenantId";
    public static final int PROP_ID_tenantId = 11;
    
    /* 角色类型: 1、应用默认角色 2、授权应用默认角色 3、普通角色: TYPE INTEGER */
    public static final String PROP_NAME_type = "type";
    public static final int PROP_ID_type = 12;
    

    private static int _PROP_ID_BOUND = 13;

    

    public static final List<String> PK_PROP_NAMES = Arrays.asList(PROP_NAME_roleId);
    public static final int[] PK_PROP_IDS = new int[]{PROP_ID_roleId};

    private static final String[] PROP_ID_TO_NAME = new String[13];
    private static final Map<String,Integer> PROP_NAME_TO_ID = new HashMap<>();
    static{
      
          PROP_ID_TO_NAME[PROP_ID_roleId] = PROP_NAME_roleId;
          PROP_NAME_TO_ID.put(PROP_NAME_roleId, PROP_ID_roleId);
      
          PROP_ID_TO_NAME[PROP_ID_roleCode] = PROP_NAME_roleCode;
          PROP_NAME_TO_ID.put(PROP_NAME_roleCode, PROP_ID_roleCode);
      
          PROP_ID_TO_NAME[PROP_ID_roleName] = PROP_NAME_roleName;
          PROP_NAME_TO_ID.put(PROP_NAME_roleName, PROP_ID_roleName);
      
          PROP_ID_TO_NAME[PROP_ID_appId] = PROP_NAME_appId;
          PROP_NAME_TO_ID.put(PROP_NAME_appId, PROP_ID_appId);
      
          PROP_ID_TO_NAME[PROP_ID_remark] = PROP_NAME_remark;
          PROP_NAME_TO_ID.put(PROP_NAME_remark, PROP_ID_remark);
      
          PROP_ID_TO_NAME[PROP_ID_createTime] = PROP_NAME_createTime;
          PROP_NAME_TO_ID.put(PROP_NAME_createTime, PROP_ID_createTime);
      
          PROP_ID_TO_NAME[PROP_ID_updateTime] = PROP_NAME_updateTime;
          PROP_NAME_TO_ID.put(PROP_NAME_updateTime, PROP_ID_updateTime);
      
          PROP_ID_TO_NAME[PROP_ID_createBy] = PROP_NAME_createBy;
          PROP_NAME_TO_ID.put(PROP_NAME_createBy, PROP_ID_createBy);
      
          PROP_ID_TO_NAME[PROP_ID_updateBy] = PROP_NAME_updateBy;
          PROP_NAME_TO_ID.put(PROP_NAME_updateBy, PROP_ID_updateBy);
      
          PROP_ID_TO_NAME[PROP_ID_delFlag] = PROP_NAME_delFlag;
          PROP_NAME_TO_ID.put(PROP_NAME_delFlag, PROP_ID_delFlag);
      
          PROP_ID_TO_NAME[PROP_ID_tenantId] = PROP_NAME_tenantId;
          PROP_NAME_TO_ID.put(PROP_NAME_tenantId, PROP_ID_tenantId);
      
          PROP_ID_TO_NAME[PROP_ID_type] = PROP_NAME_type;
          PROP_NAME_TO_ID.put(PROP_NAME_type, PROP_ID_type);
      
    }

    
    /* 角色id: ROLE_ID */
    private java.lang.String _roleId;
    
    /* 角色编号: ROLE_CODE */
    private java.lang.String _roleCode;
    
    /* 角色名称: ROLE_NAME */
    private java.lang.String _roleName;
    
    /* 应用id: APP_ID */
    private java.lang.String _appId;
    
    /* 角色描述: REMARK */
    private java.lang.String _remark;
    
    /* 创建时间: CREATE_TIME */
    private java.time.LocalDateTime _createTime;
    
    /* 修改时间: UPDATE_TIME */
    private java.time.LocalDateTime _updateTime;
    
    /* 创建人: CREATE_BY */
    private java.lang.String _createBy;
    
    /* 修改人: UPDATE_BY */
    private java.lang.String _updateBy;
    
    /* 逻辑删除 0、未删除 1、已删除: DEL_FLAG */
    private java.lang.Integer _delFlag;
    
    /* 租户ID: TENANT_ID */
    private java.lang.String _tenantId;
    
    /* 角色类型: 1、应用默认角色 2、授权应用默认角色 3、普通角色: TYPE */
    private java.lang.Integer _type;
    

    public _SysRole(){
    }

    protected SysRole newInstance(){
       return new SysRole();
    }

    public String orm_entityName() {
      return "me.flyray.bsin.server.domain.SysRole";
    }

    
    /**
     * 角色id: ROLE_ID
     */
    public java.lang.String getRoleId(){
         //onPropGet(PROP_ID_roleId);
         return _roleId;
    }

    /**
     * 角色id: ROLE_ID
     */
    public void setRoleId(java.lang.String value){
        this._roleId = value;
    }
    
    /**
     * 角色编号: ROLE_CODE
     */
    public java.lang.String getRoleCode(){
         //onPropGet(PROP_ID_roleCode);
         return _roleCode;
    }

    /**
     * 角色编号: ROLE_CODE
     */
    public void setRoleCode(java.lang.String value){
        this._roleCode = value;
    }
    
    /**
     * 角色名称: ROLE_NAME
     */
    public java.lang.String getRoleName(){
         //onPropGet(PROP_ID_roleName);
         return _roleName;
    }

    /**
     * 角色名称: ROLE_NAME
     */
    public void setRoleName(java.lang.String value){
        this._roleName = value;
    }
    
    /**
     * 应用id: APP_ID
     */
    public java.lang.String getAppId(){
         //onPropGet(PROP_ID_appId);
         return _appId;
    }

    /**
     * 应用id: APP_ID
     */
    public void setAppId(java.lang.String value){
        this._appId = value;
    }
    
    /**
     * 角色描述: REMARK
     */
    public java.lang.String getRemark(){
         //onPropGet(PROP_ID_remark);
         return _remark;
    }

    /**
     * 角色描述: REMARK
     */
    public void setRemark(java.lang.String value){
        this._remark = value;
    }
    
    /**
     * 创建时间: CREATE_TIME
     */
    public java.time.LocalDateTime getCreateTime(){
         //onPropGet(PROP_ID_createTime);
         return _createTime;
    }

    /**
     * 创建时间: CREATE_TIME
     */
    public void setCreateTime(java.time.LocalDateTime value){
        this._createTime = value;
    }
    
    /**
     * 修改时间: UPDATE_TIME
     */
    public java.time.LocalDateTime getUpdateTime(){
         //onPropGet(PROP_ID_updateTime);
         return _updateTime;
    }

    /**
     * 修改时间: UPDATE_TIME
     */
    public void setUpdateTime(java.time.LocalDateTime value){
        this._updateTime = value;
    }
    
    /**
     * 创建人: CREATE_BY
     */
    public java.lang.String getCreateBy(){
         //onPropGet(PROP_ID_createBy);
         return _createBy;
    }

    /**
     * 创建人: CREATE_BY
     */
    public void setCreateBy(java.lang.String value){
        this._createBy = value;
    }
    
    /**
     * 修改人: UPDATE_BY
     */
    public java.lang.String getUpdateBy(){
         //onPropGet(PROP_ID_updateBy);
         return _updateBy;
    }

    /**
     * 修改人: UPDATE_BY
     */
    public void setUpdateBy(java.lang.String value){
        this._updateBy = value;
    }
    
    /**
     * 逻辑删除 0、未删除 1、已删除: DEL_FLAG
     */
    public java.lang.Integer getDelFlag(){
         //onPropGet(PROP_ID_delFlag);
         return _delFlag;
    }

    /**
     * 逻辑删除 0、未删除 1、已删除: DEL_FLAG
     */
    public void setDelFlag(java.lang.Integer value){
        this._delFlag = value;
    }
    
    /**
     * 租户ID: TENANT_ID
     */
    public java.lang.String getTenantId(){
         //onPropGet(PROP_ID_tenantId);
         return _tenantId;
    }

    /**
     * 租户ID: TENANT_ID
     */
    public void setTenantId(java.lang.String value){
        this._tenantId = value;
    }
    
    /**
     * 角色类型: 1、应用默认角色 2、授权应用默认角色 3、普通角色: TYPE
     */
    public java.lang.Integer getType(){
         //onPropGet(PROP_ID_type);
         return _type;
    }

    /**
     * 角色类型: 1、应用默认角色 2、授权应用默认角色 3、普通角色: TYPE
     */
    public void setType(java.lang.Integer value){
        this._type = value;
    }
    
}
// resume CPD analysis - CPD-ON
